package cn.xiongxf.service;

import cn.xiongxf.domain.Course;
import cn.xiongxf.dto.CourseAddDto;
import cn.xiongxf.vo.CourseDataForDetailVO;
import cn.xiongxf.vo.CourseOrderDataVO;
import cn.xiongxf.vo.CourseStatusVO;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiongxiaofu
 * @since 2022-08-16
 */
public interface ICourseService extends IService<Course> {

    void save(CourseAddDto dto);

    void onLineCourse(Long id);

    void offLineCourse(Long id);

    void recommendCourse(Long id);

    List<Course> getRecommendCourses();

    List<Course> getHotRecommendClourses();

    CourseDataForDetailVO selectCourseDataForDetail(Long courseId);

    CourseStatusVO selectCourseStatusForUser(Long courseId);

    CourseOrderDataVO selectCourseDataForOrder(String courseIdsStr);
}
